package org.jash.day7;

import android.app.Application;

import org.jash.day7.entity.DaoMaster;
import org.jash.day7.entity.DaoSession;

public class App extends Application {

    private static DaoSession session;

    @Override
    public void onCreate() {
        super.onCreate();
        DaoMaster master = new DaoMaster(new DaoMaster.DevOpenHelper(this, "news.db").getWritableDb());
        session = master.newSession();
    }

    public static DaoSession getSession() {
        return session;
    }
}
